package com.huabo.system.oracle.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;

import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2021-10-28
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_MY_TASK")
@ApiModel(value="TblMyTask对象", description="")
public class TblMyTask implements Serializable {

	private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键Id 自增")
    @TableId("ID")
    @Id
    @KeySql(sql = "select MYTASK_SEQUENCE.nextval from dual", order= ORDER.DEFAULT)
    private BigDecimal id;

    @ApiModelProperty(value = "任务ID")
    @TableField("TASKID")
    @Column(name= "TASKID")
  private String taskId;

    @ApiModelProperty(value = "定义名称")
    @TableField("PROCESSDEFINITIONID")
    @Column(name= "PROCESSDEFINITIONID")
  private String processDefinitionId;

    @ApiModelProperty(value = "流程监控ID")
    @TableField("PROCESSINSTANCEID")
    @Column(name= "PROCESSINSTANCEID")
  private String processInstanceId;

    @ApiModelProperty(value = "用户ID")
    @TableField("USRID")
  private String usrid;

    @ApiModelProperty(value = "表单ID")
    @TableField("FROMID")
  private String fromid;

    @ApiModelProperty(value = "表单名称或者表单路径")
    @TableField("FROMNAME")
  private String fromname;

    @ApiModelProperty(value = "审批人")
    @TableField("APPROVER")
  private String approver;//办理人

    @ApiModelProperty(value = "审批意见")
    @TableField("EXAMINATION")//办理意见
  private String examination;

    @ApiModelProperty(value = "流程名称")
    @TableField("PROCESSNAME")
    @Column(name= "PROCESSNAME")
  private String processName;

    @ApiModelProperty(value = "审批结果")
    @TableField("RESULT")
  private String result;//办理结果

    @ApiModelProperty(value = "审批角色")
    @TableField("APPROVALROLE")
    @Column(name= "APPROVALROLE")
  private String approvalrole;//办理角色

    @ApiModelProperty(value = "审批日期")
    @TableField("APPROVALDATE")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
  private Date approvaldate;//办理时间

    @ApiModelProperty(value = "cirid")
    @TableField("CIRID")
  private String cirid;

    @ApiModelProperty(value = "handle")
    @TableField("HANDLE")
  private String handle;//"下一步：办理人/办理角色

    @ApiModelProperty(value = "ANALID")
    @TableField("ANALID")
  private String analid;

    @ApiModelProperty(value = "FXEXAM")
    @TableField("FXEXAM")
  private String fxexam;

    @ApiModelProperty(value = "KZJZEXAM")
    @TableField("KZJZEXAM")
  private String kzjzexam;

    @ApiModelProperty(value = "电子签名图片base64数据")
    @TableField("IMGBASESTR")
    @Column(name= "IMGBASESTR")
  private String imgbasestr;


}
